EnumTypeDef.h

Introduction

Use the links in the table of contents to the left to access the documentation.



Typedefs

Alignment
BarcodeHRIpos
BarcodeType
BleServiceStatus
BleWriteType
BlueToothKind
CPCLFontType
CutterMode
ECC_level
EncodingType
ESCFontType
FontStyle836
JumpMode
LableDirection
PageLengthType
PageUnit
PrintDirectionMode
PrinterCmdType
PrinterCodeError
PrinterPortType
PrintStautsCmd
RotateType
RowSpacingMode
SettingMode
TSCFontType
ZPLFontType

Alignment


typedef enum{  
    Align_NoSetting = -1,  
    Align_Left = 0,  
    Align_Center = 1,  
    Align_Right = 2,  
    Align_Full=3 
} Alignment;  
Constants
Align_NoSetting

不进行设置 Not set

Align_Left

左对齐 Align left

Align_Center

居中 Align Center

Align_Right

右对齐 Align Right

Align_Full

全齐 Align Full

Discussion

对齐模式 Alignment mode


BarcodeHRIpos


typedef enum{ 
    BarcodeHRIpos_noprint=0, 
    BarcodeHRIpos_above=1, 
    BarcodeHRIpos_Below=2, 
    BarcodeHRIpos_both=3, 
}BarcodeHRIpos;  
Discussion

条码文字显示位置 Bar code text display position for ESC - BarcodeHRIpos_noprint: 不打印 not printer - BarcodeHRIpos_above: 在条码上方 Above the bar code - BarcodeHRIpos_Below: 在条码下方 Under the bar code - BarcodeHRIpos_both: 在条码的上方及下方 Above and below the bar code


BarcodeType


typedef enum{ 
    BarcodeTypeUPC_A=0, 
    BarcodeTypeUPC_E=1, 
    BarcodeTypeEAN13=2, 
    BarcodeTypeEAN8=3, 
    BarcodeTypeCODE39=4, 
    BarcodeTypeITF =5, 
    BarcodeTypeCODABAR=6, 
    BarcodeTypeCODE128=7, 
    BarcodeTypeQrcode=8, 
    BarcodeTypeCODE93=9,//not support 
}BarcodeType;  
Discussion

条码类别 barcode type - BarcodeTypeUPC_A: UPC_A - BarcodeTypeEAN13: EAN13 - BarcodeTypeEAN8: EAN8 - BarcodeTypeCODE39: CODE39 - BarcodeTypeITF: ITF - BarcodeTypeCODABAR: CODABAR - BarcodeTypeQrcode: Qrcode


BleServiceStatus


typedef enum {  
    BleScanComplete, 
    /*正在扫描 Scanning*/
    BleScanDevice, 
}BleServiceStatus;  
Fields
BleScanComplete

停止扫描 Stop scanning

Discussion

蓝牙的当前的操作状态 The current operating status of Bluetooth


BleWriteType


typedef enum{ 
    bleWriteWithResponse=0, 
    bleWriteWithoutResponse=1 
}BleWriteType;  
Discussion

蓝牙写入方式 Bluetooth write mode


BlueToothKind


typedef enum {  
    BlueToothKind_Ble = 0,  
    BlueToothKind_Classic = 1, 
} BlueToothKind;  
Constants
BlueToothKind_Ble

ble 蓝牙

BlueToothKind_Classic

经典蓝牙

Discussion

蓝牙类别 Bluetooth kind


CPCLFontType


typedef enum{ 
    CPCLFontType_Font1 = 1, 
    CPCLFontType_Font2 = 2, 
    CPCLFontType_Font3 = 3, 
    CPCLFontType_Font4 = 4, 
    CPCLFontType_Font5 = 5, 
    CPCLFontType_Font6 = 6, 
    CPCLFontType_Font7 = 7, 
} CPCLFontType;  
Discussion

CPCL字体类型(for CPCL) CPCL type


CutterMode


typedef enum{  
    CutterMode_None = 0,  
    CutterMode_half = 1,  
    CutterMode_Full = 2, 
} CutterMode;  
Constants
CutterMode_None

不切 Don't cut

CutterMode_half

半切 Half cut

CutterMode_Full

全切 All cut

Discussion

切刀模式 Cutter mode


ECC_level


typedef enum{  
    ECC_level_L,  
    ECC_level_M,  
    ECC_level_Q,  
    ECC_level_H 
}ECC_level;  
Fields
ECC_level_L

%7

ECC_level_M

%15

ECC_level_Q

%25

ECC_level_H

30%

Discussion

错误纠正能力等级 Error correction level 适用于TSC的二维码 Two-dimensional code for TSC


EncodingType


typedef enum{ 
    Encoding_GBK = 0, 
    Encoding_UTF8 = 1 
}EncodingType;  
Discussion

编码类型 encoding type - Encoding_GBK: GBK - Encoding_UTF8: UTF8


ESCFontType


typedef enum{  
    ESCFontType_FontA = 0,  
    ESCFontType_FontB = 1, 
} ESCFontType;  
Constants
ESCFontType_FontA

A Font(12*24)

ESCFontType_FontB

B Font(9*17)

Discussion

ESC字体类型(For ESc) ESC font type


FontStyle836


Constants
FontStyle836_Normal

正常 Normal

FontStyle836_Hollow

中空 Hollow

FontStyle836_shadow

带阴影 shadow

FontStyle836_shadowAndHollow

带阴影且中空 shadow And Hollow

Discussion

针打的字体风格 Font style (For pin)


JumpMode


typedef enum {  
    JumpMode_Forward=0,  
    JumpMode_Reverse=1 
} JumpMode;  
Constants
JumpMode_Forward

正向跳行 Forward jump

JumpMode_Reverse

逆向跳行 Reverse jump

Discussion

跳行模式(for Pin) Jump mode


LableDirection


typedef enum{ 
    Direction_Forward=0, 
    Direction_Reverse=1, 
}LableDirection;  
Discussion

标签打印方向(for TSC,CPCL,zpl) Label printing direction


PageLengthType


typedef enum { 
    pglen_INCH_3=0, //3 inch 
    pglen_INCH_11_divided_by_3=1, //11/3 inch 
    pglen_INCH_3_5=2,//3.5 inch 
    pglen_INCH_4=3,//3 inch 
    pglen_INCH_5=4, 
    pglen_INCH_5_5=5,//5.5 
    pglen_INCH_6=6, 
    pglen_INCH_7=7, 
    pglen_INCH_11=8, 
    pglen_INCH_A4_11_6=9,//11.6 
    pglen_INCH_12=10,//10 
    pglen_INCH_14=11, 
}PageLengthType;  
Discussion

设置页长命令 for pin Setting the page Length


PageUnit


typedef enum{  
    PageUnit_Row=0,  
    PageUnit_inch=1 
}PageUnit;  
Constants
PageUnit_Row

以行为单位,

PageUnit_inch

以英寸为单位,

Discussion

页长单位(for Pin) Page length unit


PrintDirectionMode


typedef enum {  
    Print_double_sided = 0,  
    Print_single_sided = 1,  
    Print_Full_sided = 2 
} PrintDirectionMode;  
Constants
Print_double_sided

为双向打印字符,图象及双重打印作单向打印 double sided printing characters

Print_single_sided

单向打印 single sided

Print_Full_sided

全双向打印(包括图象) Print_Full_sided (Including images)

Discussion

打印方向(for Pin) Print direction


PrinterCmdType


typedef enum { 
    PrinterCmdESC = 0, 
    PrinterCmdTSC = 1, 
    PrinterCmdCPCL = 2, 
    PrinterCmdPIN = 3, 
    PrinterCmdZPL = 4 
}PrinterCmdType;  
Discussion

指令类型 Instruction type


PrinterCodeError


typedef enum { 
    PrinterCodeOK = 0, 
    PrinterCodeTooLong = -1, 
    PrinterCodeFormatError = -2, 
    PrinterCodeUnknowType = -3, 
    PrinterCodeTooShort = -4,  
}PrinterCodeError;  
Discussion

打印条码返回的值 Print the value returned by the bar code - PrinterCodeOK: 条码正确 The bar code is correct - PrinterCodeTooLong: 条码太长 Bar code is too long - PrinterCodeFormatError: 条码格式有误 Barcode format is wrong - PrinterCodeUnknowType: 未知条码类型 Unknown barcode type - PrinterCodeTooShort: 条码太短 Barcode is too short


PrinterPortType


typedef enum { 
    PrinterPortWifi=0, 
    PrinterPortBle=1, 
    PrinterPortMFI=2, 
}PrinterPortType;  
Discussion

连接端口类型 Connection port type


PrintStautsCmd


Constants
PrnStautsCmd_unknown

未定义 unknown

PrnStautsCmd_HQPRNSTA410

410询问打印机当前状态 for RP410, ZPL Printer status, such as paper jam, out of paper, open cover, etc.

PrnStautsCmd_Normal

for Rpp806 TSC, for Rpp80 ESC 打印机的状态,如卡纸,缺纸,开盖等 Printer status, such as paper jam, out of paper, open cover, etc.

PrnStautsCmd_Mileage

for Rpp806 TSC 已打印的里程单位:m Mileage printed: m

PrnStautsCmd_ModelName

for Rpp806 TSC 打印机模块名,及系列号 Printer module name, and serial number

PrnStautsCmd_MemorySize

for Rpp806 TSC 打印机内存大小:单位:Byte Printer memory size: unit: Byte

PrnStautsCmd_PrintEnd

for Rpp806 TSC 打印成功,打印机自动返回 The print is successful and the printer automatically returns

Discussion

打印机状态询问命令 printer Stauts enquiry


RotateType


typedef enum{  
    Rotate0=0,  
    Rotate90=1,  
    Rotate180=2,  
    Rotate270=3, 
} RotateType;  
Constants
Rotate0

不旋转 Do not rotate

Rotate90

顺时间旋转90度 Rotate 90 degrees

Rotate180

顺时间旋转180度 Rotate 180 degrees

Rotate270

顺时间旋转270度 Rotate 270 degrees

Discussion

条码顺时间旋转 Bar code clockwise rotation ESC 只能旋转90度 ESC Can only rotate 90 degrees


RowSpacingMode


typedef enum {  
    Row60th = 1,  
    Row180th = 2,  
    Row360th = 3,//  
    RowOneSixth = 4,  
    RowOneeighth = 5, 
} RowSpacingMode;  
Constants
Row60th

设定 n/60行距 Set n/60 line spacing

Row180th

设定 n/180行距 Set n/180 line spacing

Row360th

设定 n/360行距 Set n/360 line spacing

RowOneSixth

设定 1/6 行距 Set 1/6 line spacing

RowOneeighth

设定 1/8 Set 1/8 line spacing行距

Discussion

行距模式(for Pin) Row spacing mode


SettingMode


typedef enum {  
    Set_NoSetting = -1,  
    Set_DisEnable = 0,  
    Set_Enabled = 1 
} SettingMode;  
Constants
Set_NoSetting

不进行设置 Not set

Set_DisEnable

禁用 Disabled

Set_Enabled

启用 Enabled

Discussion

设置是否可用


TSCFontType


Constants
TSCFontType_Font1

8x12 英数字体 fixed pitch dot font

TSCFontType_Font2

12X20 英数字体 fixed pitch dot font

TSCFontType_Font3

16X24 英数字体 fixed pitch dot font

TSCFontType_Font4

24X32 英数字体 fixed pitch dot font

TSCFontType_Font5

32X48 英数字体 fixed pitch dot font

TSCFontType_Font6

14X19 英数字体 OCR-B fixed pitch dot font

TSCFontType_Font7

14x25英数字体 OCR-A fixed pitch dot font

TSCFontType_Font8

21X27英数字体 OCR-B fixed pitch dot font

TSCFontType_TST24

繁体中文 24x24 字体(大五码) TST24.BF2 Traditional Chinese 24 x 24 font

TSCFontType_TSS24

简体中文 24x24 字体(GB 码) TSS24.BF2 Simplified Chinese 24 x 24 font (GB)

TSCFontType_K

韩文 24x24 字体(KS 码) K Korean 24 x 24 font (KS)

Discussion

TSC字体类型(For TSC) TSC 字体类型


ZPLFontType


typedef enum { 
    ZplFontType_Vector = 0,//矢量字体 Vector font 
    ZplFontType_Font1 = 1, 
    ZplFontType_Font2 = 2, 
    ZplFontType_Font3 = 3, 
    ZplFontType_Font4 = 4, 
    ZplFontType_Font5 = 5, 
    ZplFontType_Font6 = 6, 
    ZplFontType_Font7 = 7, 
    ZplFontType_Font8 = 8, 
    ZplFontType_Font9 = 9, 
    ZplFontType_FontA = 10, //A 
    ZplFontType_FontB = 11, //B 
    ZplFontType_FontC = 12, //C 
    ZplFontType_FontD = 13, //D 
    ZplFontType_FontE = 14, //E 
    ZplFontType_FontF = 15, //F 
    ZplFontType_FontG = 16, //G 
} ZPLFontType;  
Discussion

ZPL字体类型(for ZPL) ZPL type


Structs and Unions

Coordinate

Coordinate


struct Coordinate { 
    NSInteger x; 
    NSInteger y;  
    NSInteger width; 
    NSInteger height; 
};  
Fields
width

TSC Qrcode width=1~10

Discussion

坐标 coordinate